package com.Liux.blog.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

public class Comments {
    /**
     * id
     */
    @Id
    private Integer id;

    /**
     * 收到评论的用户id
     */
    @Column(name = "letter_comments_id")
    private String letterCommentsId;

    /**
     * 文章id
     */
    @Column(name = "article_id")
    private String articleId;

    /**
     * 评论内容
     */
    private String center;

    /**
     * 评论者id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 发布时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 获取id
     *
     * @return id - id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取收到评论的用户id
     *
     * @return letter_comments_id - 收到评论的用户id
     */
    public String getLetterCommentsId() {
        return letterCommentsId;
    }

    /**
     * 设置收到评论的用户id
     *
     * @param letterCommentsId 收到评论的用户id
     */
    public void setLetterCommentsId(String letterCommentsId) {
        this.letterCommentsId = letterCommentsId;
    }

    /**
     * 获取文章id
     *
     * @return article_id - 文章id
     */
    public String getArticleId() {
        return articleId;
    }

    /**
     * 设置文章id
     *
     * @param articleId 文章id
     */
    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    /**
     * 获取评论内容
     *
     * @return center - 评论内容
     */
    public String getCenter() {
        return center;
    }

    /**
     * 设置评论内容
     *
     * @param center 评论内容
     */
    public void setCenter(String center) {
        this.center = center;
    }

    /**
     * 获取评论者id
     *
     * @return user_id - 评论者id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置评论者id
     *
     * @param userId 评论者id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取发布时间
     *
     * @return create_time - 发布时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置发布时间
     *
     * @param createTime 发布时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}